<?
function doReport($pp) {
	include "core/conn.php";

	$d = $pp[1];
	$s = $pp[2];
	$t = $pp[3];

	$sql = "select * from pic$d where ticket = '$t'";
	$res = mysql_query($sql);
	while ($r = mysql_fetch_array($res)) {
		$report = $r['report'];
		$sql = "update pic$d set report =" . ($report + 1) . " where ticket = '$t'";
		mysql_query($sql);
		echo "{ret:1}";
		exit ;
	}
	echo "{ret:0}";
	exit ;
}
?>